﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>

<script type="text/javascript">
    function select_project(userType) {
        var url = '../ZSManage/GetCompanyList.aspx?userType=' + escape(userType) + "&rd=" + Math.random();
        var feature = "dialogWidth:" + 500 + "px;dialogHeight:" + 450 + "px;scroll:yes;status:no;help:no;center:1";

        var project_info = window.showModalDialog(url, '', feature);
        if (project_info != undefined && project_info.length > 1) {
            document.getElementById('<%=txt概算评估机构.ClientID %>').value = project_info[1];
        }
    }
    function select_project1(userType) {
        var url = 'GetCompanyList1.aspx?userType=' + escape(userType) + "&rd=" + Math.random();
        var feature = "dialogWidth:" + 500 + "px;dialogHeight:" + 450 + "px;scroll:yes;status:no;help:no;center:1";

        var project_info = window.showModalDialog(url, '', feature);
        if (project_info != undefined && project_info.length > 1) {

            var returnval = project_info;
            var returnvalue = returnval.split(',');

            document.getElementById("project_id").value = "";
            document.getElementById('Text1').value = "";
            document.getElementById('Text2').value = "";
            document.getElementById('<%=txt候选评估机构.ClientID %>').value = "";

        document.getElementById('project_id').value = returnval;
        for (var i = 0; i < returnvalue.length; i++) {
            var temp = returnvalue[i];
            var tempone = temp.replace("|", ",").split(',');
            document.getElementById('Text1').value += tempone[0] + ",";
            document.getElementById('Text2').value += tempone[1] + ",";
            document.getElementById('<%=txt候选评估机构.ClientID %>').value =
document.getElementById('Text2').value.substring(0, document.getElementById('Text2').value.length - 1);
      }
  }
}
</script>

<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png); margin-top: 1px">
    <tr>
        <td valign="middle" height="30">
            <font id="Font1" style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left; color: black; text-indent: 1em;"
                runat="server">项目初期选择评估机构 </font>
        </td>
    </tr>
</table>
<center>
    <table style='width: 100%;' class="window_tab_list" cellpadding="0" cellspacing="0"
        border="1">
        <tr>
            <th colspan="4" style="text-align: center; line-height: 20px;">
                项目初期选择评估机构
            </th>
        </tr>
        <tr style='height: 15.0pt'>
            <td style="width:100px;">
                项目名称：
            </td>
            <td style="width:200px;">
                <asp:Label ID="lbl项目名称" runat="server" Text=""></asp:Label>
            </td>
            <td style="width:100px;">
                征收范围：
            </td>
            <td>
                <asp:Label ID="lbl征收范围" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td rowspan="5"  style="width:100px;">
                候选评估机构：
            </td>
            <td rowspan="5" colspan="2" style="width:400px;">
                <asp:TextBox ID="txt候选评估机构" runat="server" TextMode="MultiLine" Width="100%" Height="75px"
                   onfocus="this.blur()"></asp:TextBox>
            </td>
            <td rowspan="5" align="left">
                &nbsp;&nbsp;<input type="button" value="选择" onclick="select_project1('评估机构')" />
                &nbsp;&nbsp;<asp:Button ID="btnHNull" runat="server" Text="清空"
                    OnClientClick="return confirm('确认将已选择的候选评估机构进行清空吗？')" />
            </td>
        </tr>
        <tr style='height: 15.0pt'>
        </tr>
        <tr style='height: 15.0pt'>
        </tr>
        <tr style='height: 15.0pt'>
        </tr>
        <tr style='height: 15.0pt'>
        </tr>
        <tr style='height: 15.0pt'>
            <td rowspan="2" style="width:100px;">
                概算评估机构：
            </td>
            <td rowspan="2" style="width:400px;">
                <asp:TextBox ID="txt概算评估机构" runat="server" TextMode="MultiLine" Width="100%" Height="30px"
                    onfocus="this.blur()"></asp:TextBox>
            </td>
            <td rowspan="2" colspan="2" align="left">
                &nbsp;&nbsp;<input type="button" value="选择" onclick="select_project('评估机构')" />
                &nbsp;&nbsp;<asp:Button ID="btnRNull" runat="server" Text="清空"
                    OnClientClick="return confirm('确认将已选择的概算评估机构进行清空吗？')" />
            </td>
        </tr>
        <tr style='height: 15.0pt'>
        </tr>
        <tr>
            <td colspan="4">
                <asp:Button ID="BtnSave" runat="server" Text="保存" />&nbsp;&nbsp;
                <input id="Button1" type="button" value="返回" onclick="javascript: window.location.href('ZS_QPGJG.aspx');" />
            </td>
        </tr>
    </table>
    <div style="display: none;">
        <input type="text" value="" id="project_id" />
        <input type="text" value="" id="Text1" />
        <input type="text" value="" id="Text2" />
    </div>
</center>
